package com.nuo.demo.dockerFile.controller;


import cn.hutool.core.date.DateUtil;
import com.nuo.common.core.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;


/**
 * @author LGC
 */
@Api(tags = "demo")
@Slf4j
@RestController
@RequiredArgsConstructor
public class DemoController {


    @ApiOperation(value = "demo")
    @GetMapping("/demo")
    public Result<String> getUserDetail() {
        return Result.success(DateUtil.formatDateTime(new Date()));
    }


}
